import { createRequest } from '/@/api/service';
const module = 'ib/base/v1/appMenuHomepage/';

/**
 * @function app首页菜单添加
 * @param data
 * @param header
 * @returns {Promise}
 */
function APP_MENU_HOMEPAGE_SAVE(
  data: AppMenuHomepageApi.AppMenuHomepageSaveReq,
  header: object = {},
): Promise<AppMenuHomepageApi.AppMenuHomepageSaveResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}appMenuHomepageSave`,
    data,
    header,
    'POST',
  );
}

export { APP_MENU_HOMEPAGE_SAVE };
